package com.example.cdctest.mapper;

import com.example.cdctest.pojo.QuestionType;import org.apache.ibatis.annotations.Param;import java.util.List;

public interface QuestionTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QuestionType record);

    int insertSelective(QuestionType record);

    QuestionType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionType record);

    int updateByPrimaryKey(QuestionType record);

    List<QuestionType> findAll();

    List<Integer> findIdsById(Integer id);

    void deleteById(Integer id1);

    Integer findPidById(Integer id);

    List<QuestionType> selectList(@Param("name") String name);

    void updateSortById(QuestionType object);

    //根据问题类型的Id,查出它的父Id
    Integer selectTypePid(QuestionType questionType);

    //根据问题类型的id,让其对应的数量加1
    void updateTypeQuestionCount(QuestionType questionType);

    List<QuestionType> specialExercises();
}